/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_dslamDetachedCriteria extends AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression userName;
    public final StringExpression password;
    public final BooleanExpression external;

    public T_bed_dslamDetachedCriteria() {
	super(org.testis.orm.classes.T_bed_dslam.class,
		org.testis.orm.classes.T_bed_dslamCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	userName = new StringExpression("userName", this.getDetachedCriteria());
	password = new StringExpression("password", this.getDetachedCriteria());
	external = new BooleanExpression("external", this.getDetachedCriteria());
    }

    public T_bed_dslamDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_bed_dslamCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	userName = new StringExpression("userName", this.getDetachedCriteria());
	password = new StringExpression("password", this.getDetachedCriteria());
	external = new BooleanExpression("external", this.getDetachedCriteria());
    }

    public T_bed_dutDetachedCriteria createT_bed_dutCriteria() {
	return new T_bed_dutDetachedCriteria(createCriteria("ORM_T_bed_dut"));
    }

    public T_bed_dslam uniqueT_bed_dslam(PersistentSession session) {
	return (T_bed_dslam) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_bed_dslam[] listT_bed_dslam(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_bed_dslam[]) list.toArray(new T_bed_dslam[list.size()]);
    }
}
